package com.weifangfirecontrolformal.weifangfirecontrolformal.web.web.business.businessEvaluation;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseController;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.annotaion.Action;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.annotaion.At;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.business.businessEvaluation.BusinessEvaluationService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

/**
 * @author Yang yu
 * @version 1.0
 * @date 2020/7/20 15:39
 */
@Action
@RequestMapping(value="business/businessEvaluation")
public class BusinessEvaluationController extends BaseController {
    @Resource
    private BusinessEvaluationService businessEvaluationService;

    /**
     * 单位评估接口
     * @param jsonParam
     * @return
     */
    @At(value = "getBusinessEvaluation", method = RequestMethod.GET)
    public RespEntity getBusinessEvaluation(@RequestBody(required = false) JSONObject jsonParam) {
        return businessEvaluationService.getBusinessEvaluation(jsonParam);
    }
}
